import { makeAutoObservable, computed } from 'mobx'

export class CounterStore {
  // difine data
  count = 0
  constructor() {
    // reactive data
    makeAutoObservable(this, {
      filterList: computed,
    })
  }
  // defined method to be modified
  addCount = () => {
    this.count++
  }
}
